using UnityEngine;

namespace Gj
{
    public class PositionHelper : NodeHelper
    {
        public Camera camera;
        protected override BindDataType bindDataType => BindDataType.String;

        protected override void BindData(string s)
        {
            transform.position = camera.WorldToScreenPoint(HexCube.FromOffset(MathTools.ToVector2(s)).ToPosition());
        }
    }
}